<template>
    <div class="common-layout">
        <el-container>
            <el-aside width="220px">
                <Menu></Menu>
            </el-aside>
            <el-container>
                <el-header>
                    <Breadcrumb></Breadcrumb>
                    <Setting></Setting>
                </el-header>
                <el-main>
                    <Main></Main>
                </el-main>
                <el-footer>2023-2024 &copy; TalkingData</el-footer>
            </el-container>
        </el-container>
    </div>
</template>

<script setup lang="ts" name="Home">
import Menu from '@/layout/menu/index.vue';
import Main from '@/layout/main/index.vue';
import Breadcrumb from '@/layout/header/breadcrumb/index.vue';
import Setting from '@/layout/header/setting/index.vue';

</script>

<style lang="scss" scoped>
.common-layout,
.el-container,
.el-aside {
    height: 100%;
}

.icon {
    height: 1em;
    width: 1em;
}

.el-header {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
}

.el-main {
    padding: 20px;
    border-left: 1px solid #eee;
    overflow-x: hidden;
}

.el-footer {
    height: 40px;
    font-size: 12px;
    text-align: right;
    line-height: 40px;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}
</style>